/*
 * @Description: 
 * @Author: duan_shuangjun 丶
 * @Date: 2025-09-19 13:08:51
 * @LastEditTime: 2025-09-19 23:14:10
 */
/**
 * 打印模块类型定义
 */

// 打印机信息接口
export interface PrinterInfo {
    id: string
    name: string
    PortName: string
    status: 'online' | 'offline' | 'error'
    description?: string
}

// 打印任务接口
export interface PrintTask {
    id: string
    printerName: string
    data: any
    pageType: string
    status: 'pending' | 'printing' | 'completed' | 'failed'
    createdAt: Date
    completedAt?: Date
    error?: string
}

// 打印页面类型映射
export interface PrintPageMap {
    [key: string]: string
}

// 打印结果接口
export interface PrintResult {
    success: boolean
    message?: string
    taskId?: string
}
